# 导包
import json
import config


# 定义构建测试数据方法
def build_data3():
    test_data = []
    # 打开json文件、使用load加载文件中的全部数据
    with open(config.BASE_PATH + "/data/add.json", encoding="utf-8") as f:
        # json_data = [
        #     {"a": 1, "b": 1, "c": 2},
        #     {"a": 1, "b": 0, "c": 1},
        #     {"a": 0, "b": 0, "c": 0}
        # ]

        # 加载json文件数据
        json_data = json.load(f)

        # 循环遍历json数据
        for i in json_data:
            aa = i.get("a")
            bb = i.get("b")
            cc = i.get("c")
            test_data.append((aa, bb, cc))
        # return [(1, 1, 2), (1, 0, 1), (0, 0, 0)]

    return test_data
